﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MLM.AdminCP;

namespace MLM.Home.Controls
{
    public partial class Products : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RabCountry.SelectedIndexChanged += new EventHandler(RabCountry_SelectedIndexChanged);
            RadUser.SelectedIndexChanged += new EventHandler(RadUser_SelectedIndexChanged);
            if (!IsPostBack)
            {
                HfUserID.Text = RadUser.SelectedValue;
                HfCountryID.Text = RabCountry.SelectedValue;
            }
        }

        void RadUser_SelectedIndexChanged(object sender, EventArgs e)
        {
            HfUserID.Text = RadUser.SelectedValue;
        }

        void RabCountry_SelectedIndexChanged(object sender, EventArgs e)
        {
            //RadUser.Text = "";
            //RadUser.ClearSelection();
            HfCountryID.Text = RabCountry.SelectedValue;

        }
    }
}